package org.example.code.logger;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoggerController {
    @RequestMapping("logger")
    public String logger(){
        Logger logger = LoggerFactory.getLogger("嘻嘻哈哈");
        Logger logger1 = LoggerFactory.getLogger(LoggerController.class);
        logger.info("你好日志（输出的日志内容）");
        logger1.info("你好日志（输出的日志内容）");
        System.out.println("你好 日志");
        return "日志打印成功";
    }

}
